﻿<Windows:Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0"
        xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/charts" xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" xmlns:Windows="clr-namespace:System.Windows;assembly=PresentationFramework" mc:Ignorable="d" x:Class="NeuroForecast.MainWindow"
        Title="MainWindow" Height="600" Width="800" Loaded="Window_Loaded" Closing="Window_Closing" xmlns:my="clr-namespace:NeuroForecast" WindowState="Maximized" xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking">
    <Grid Name="MainWindowGrid">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="486*" />
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        
        <Menu Height="23" HorizontalAlignment="Stretch" x:Name="menu1" VerticalAlignment="Top" Grid.Row="0">
            <MenuItem Header="Файл" />
            <MenuItem Header="Правка" />
            <MenuItem Header="Вид" />
            <MenuItem Header="Справка" />
        </Menu>
        <TabControl HorizontalAlignment="Stretch" x:Name="tabControl1" VerticalAlignment="Stretch" Grid.Row="2">
        	<TabItem Header="Исходные данные" x:Name="tabItem1">
        		<Grid>
        			<Grid.ColumnDefinitions>
        				<ColumnDefinition Width="2*"/>   			
						<ColumnDefinition Width="5*"/>
					</Grid.ColumnDefinitions>
        			<DataGrid Name="dg" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
						Grid.Column="1" Grid.Row="0" AlternationCount="1" AlternatingRowBackground="#FFD3EBF5" RowBackground="#FFBDF2BD" 
						BorderThickness="1" VerticalScrollBarVisibility="Auto" VerticalGridLinesBrush="#FFC4C4C4" 
						HorizontalGridLinesBrush="#FFC1BCBC" CanUserSortColumns="False"/>
                    <TextBlock Margin="10,5,0,0" VerticalAlignment="Top" Text="Показатели"></TextBlock>
                    <ListBox Grid.Column="0" Margin="5,25,5,5" Name="SourceList" />
                    
                </Grid>
        	</TabItem>
        	<TabItem Header="Конфигурация нейросети" x:Name="tabItem2" Visibility="Collapsed">
        		<Grid>
        			<Button Content="Сохранить настройки сети" Height="23" Margin="309,20.96,300,0" x:Name="button1" VerticalAlignment="Top" />
                    <Label Content="Количество нейронов в скрытом слое" HorizontalAlignment="Left" Margin="23.98,77.08,0,0" VerticalAlignment="Top"/>
                    <Label Content="Скорость обучения" HorizontalAlignment="Left" Margin="23.98,107.04,0,0" VerticalAlignment="Top"/>
                    <Label Content="Количество нейронов эпох" HorizontalAlignment="Left" Margin="23.98,137,0,0" VerticalAlignment="Top"/>
        			<ComboBox HorizontalAlignment="Left" Height="24" Margin="135.67,19.96,0,0" VerticalAlignment="Top" Width="160.35"/>
        			<Label Content="Выбор нейросети" HorizontalAlignment="Left" Margin="23.98,18,0,0" VerticalAlignment="Top"/>
                    <TextBox Height="21" HorizontalAlignment="Left" Margin="263,79,0,0" Name="textBox1" VerticalAlignment="Top" Width="205" />
                    <TextBox Height="21" HorizontalAlignment="Left" Margin="263,109,0,0" Name="textBox2" VerticalAlignment="Top" Width="205" />
                    <TextBox Height="21" HorizontalAlignment="Left" Margin="263,139,0,0" Name="textBox3" VerticalAlignment="Top" Width="205" />
                </Grid>
        	</TabItem>
        	<TabItem x:Name="TabItem3" Header="Рабочий режим">
        		<Grid Background="White">
        			<Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="5*" />
                            <RowDefinition Height="8*" />
                        </Grid.RowDefinitions>
                        <dxc:ChartControl HorizontalAlignment="Stretch" Margin="5" Name="chartControl1" VerticalAlignment="Stretch" Grid.Row="1">
                            <dxc:ChartControl.Diagram>
                                <dxc:XYDiagram2D >
                                    <dxc:XYDiagram2D.AxisY>
                                        <dxc:AxisY2D>
                                            <dxc:AxisY2D.Range>
                                                <dxc:AxisRange MaxValue="45" MinValue="25" />
                                            </dxc:AxisY2D.Range>
                                        </dxc:AxisY2D>
                                    </dxc:XYDiagram2D.AxisY>
                                    <dxc:XYDiagram2D.AxisX>
                                        <dxc:AxisX2D>
                                            <!--<dxc:AxisX2D.Range>
                                                <dxc:AxisRange MaxValueInternal="500" MinValueInternal="300"/>
                                            </dxc:AxisX2D.Range>--> 
                                            <dxc:AxisX2D.Tickmarks>
                                                <dxc:Tickmarks MinorVisible="False" />
                                            </dxc:AxisX2D.Tickmarks>
                                            <dxc:AxisX2D.DateTimeOptions>
                                                <dxc:DateTimeOptions Format="ShortDate" />
                                            </dxc:AxisX2D.DateTimeOptions>
                                        </dxc:AxisX2D>
                                    </dxc:XYDiagram2D.AxisX>
                                    <!--<dxc:XYDiagram2D.Series>
                                        <dxc:LineSeries2D Name="ls2d" MarkerVisible="False" ArgumentScaleType="DateTime">
                                        	<dxc:LineSeries2D.Label>
                                                <dxc:SeriesLabel ConnectorVisible="False"  Visibility="Collapsed"/>
                                            </dxc:LineSeries2D.Label>    
                                        </dxc:LineSeries2D>
                                    </dxc:XYDiagram2D.Series>-->
                                </dxc:XYDiagram2D>
                            </dxc:ChartControl.Diagram>
                        </dxc:ChartControl>
                        <Button Content="Обновить" Height="23" Margin="278,8,0,0" Name="button2" VerticalAlignment="Top" Click="button2_Click" d:LayoutOverrides="VerticalAlignment" HorizontalAlignment="Left" Width="75" />
                    </Grid>
        			<ComboBox HorizontalAlignment="Right" Height="23" Margin="0,37.96,8,0" VerticalAlignment="Top" Width="227.217"/>
        			<ListBox HorizontalAlignment="Left" Margin="8,37.96,0,0" Width="347.783" Height="123.04" VerticalAlignment="Top"/>
        			<Label Content="Анализируемый показатель" Margin="371,35,239.216,0" VerticalAlignment="Top" d:LayoutOverrides="Width" Width="158" />
        			<Label Content="Используемая нейросеть" HorizontalAlignment="Left" Margin="8,8,0,0" VerticalAlignment="Top"/>
                    <ComboBox Margin="0,84.04,8,0" VerticalAlignment="Top" HorizontalAlignment="Right" Width="227.217" Height="23"/>
        			<Label Content="Результат" Margin="371,135.04,340.523,0" VerticalAlignment="Top" d:LayoutOverrides="Width"/>
        			<Label Content="Горизонт прогноза" HorizontalAlignment="Right" Margin="0,84.04,287.75,0" VerticalAlignment="Top"/>
        			<Label Content="######" Margin="0,135.04,172.74,0" VerticalAlignment="Top" HorizontalAlignment="Right"/>
        		</Grid>
        	</TabItem>
        </TabControl>
        <StatusBar Height="23" HorizontalAlignment="Stretch" x:Name="statusBar1" VerticalAlignment="Bottom" Grid.Row="3">
            <StatusBarItem />
        </StatusBar>
        <DockPanel Grid.Row="1" HorizontalAlignment="Stretch" Height="30" Margin="0" Name="dockPanel1">
            <Button Name="But_AddCriterion" Content="Добавить критерий" Width="120" HorizontalAlignment="Left" VerticalAlignment="Stretch" Margin="3" Click="But_AddCriterion_Click" />
            <Button Name="But_DeleteCriterion" Content="Удалить критерий" Width="120" HorizontalAlignment="Left" VerticalAlignment="Stretch" Margin="3" Click="But_DeleteCriterion_Click" />
            <Button Name="But_UpdateDataBase" Content="Сохранить таблицу в БД" Width="150" HorizontalAlignment="Left" VerticalAlignment="Stretch" Margin="3" Click="But_UpdateDataBase_Click" />
            <Button Name="But_CreateAlgorithm" Content="Создать алгоритм" Height="20" Click="But_CreateAlgorithm_Click" />
        </DockPanel>
        <my:ProgressControl x:Name="ProgressCtrl" Grid.Row="0" Grid.Column="0" Grid.RowSpan="4" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Visibility="Collapsed" Panel.ZIndex="-1" Opacity="1" />
    </Grid>
</Windows:Window>
